<?php

    function UnitTableCreate( tString $name, tCoalaPointer $callback ) {
        global $db;

        $name = $name->Get();

        echo $callback;
        try {
            $db->CreateDb( $name );
            ?>( <?php
            echo w_json_encode( $name );
            ?>, true );<?php
        } catch ( Exception $e ) {
            ?>( <?php
            echo w_json_encode( $name );
            ?>, false, <?php
            echo w_json_encode( $e->getMessage() );
            ?> );<?php
        }
    }

?>
